JQuery Form Validation

Adding jQuery form validation

If you would like to add your own validation rules, you can use the jQuery script below as a starting point.

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script>
$( document ).ready(function() {
 $( "form" ).submit(function( event ) {
 var email = $('input[name="email"]').val();
 if(!email) {
 alert('Please enter your email');
 return false;
 }
 });
});
</script>